//
//  MDetailMerchantModel.m
//  NeusoftHBSJSober
//
//  Created by Apple-21 on 15/11/9.
//  Copyright (c) 2015年 com.neusoftsober. All rights reserved.
//

#import "MDetailMerchantModel.h"

@implementation MDetailMerchantModel

@end
@implementation MDetailMerchantHttpResult

- (id)getMerchantResultWithJSON:(id)JSON {

    if ([JSON isKindOfClass:[NSDictionary class] ] && JSON) {
        MDetailMerchantModel *model = [[MDetailMerchantModel alloc]init];
        model.checkState = [((NSNumber *)JSON[@"CheckState"]) stringValue];
        model.companyAddress = (JSON[@"CompanyAddress"] == [NSNull null]) ? @"" : JSON[@"CompanyAddress"];
        model.companyName = (JSON[@"CompanyName"] == [NSNull null]) ? @"" : JSON[@"CompanyName"];
        model.createTime = (JSON[@"CreateTime"] == [NSNull null]) ? @"" : JSON[@"CreateTime"];
        model.ID = [((NSNumber *)JSON[@"ID"]) stringValue];
        model.job = (JSON[@"Job"] == [NSNull null]) ? @"" : JSON[@"Job"];
        model.memo = (JSON[@"Memo"] == [NSNull null]) ? @"" : JSON[@"Memo"];
        model.modifyTime = (JSON[@"ModifyTime"] == [NSNull null]) ? @"" : JSON[@"ModifyTime"];
        model.name = (JSON[@"Name"] == [NSNull null]) ? @"" : JSON[@"Name"];
        model.phone = (JSON[@"Phone"] == [NSNull null]) ? @"" : JSON[@"Phone"];
        model.positionX = [((NSNumber *)JSON[@"PositionX"]) stringValue];
        model.positionY = [((NSNumber *)JSON[@"PositionY"]) stringValue];
        model.QQ = (JSON[@"QQ"] == [NSNull null]) ? @"" : JSON[@"QQ"];
        model.userID = [((NSNumber *)JSON[@"UserID"]) stringValue];
        model.radius = [((NSNumber *)JSON[@"Radius"]) stringValue];
        
        return model;
    }
    return nil;

}

@end